package top.eati.linguisticsdept.dict.apijson
import apijson.RequestMethod
import apijson.framework.APIJSONSQLConfig
import com.alibaba.fastjson.annotation.JSONField

class SQLConfig : APIJSONSQLConfig()
{
    init {
        DEFAULT_DATABASE = DATABASE_POSTGRESQL
        DEFAULT_SCHEMA = "public"

    }
    //constructor(method: RequestMethod, table: String) : super(method, table)

    override fun getDBVersion(): String {
        return "13"
    }

    @JSONField(serialize = false)
    override fun getDBUri(): String {
        return "jdbc:postgresql://localhost:5432/ling_dept_dict?useUnicode=true&characterEncoding=utf8"
    }

    override fun getDBAccount(): String {
        return "postgres"
    }
}